package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.aop.AutoFill;
import com.zzyl.dto.NursingLevelPageQueryDto;
import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NursingLevelMapper {


    //@Select("select * from nursing_level order by create_time desc ")
    Page<NursingLevelVo> nursinglevelquery(NursingLevelPageQueryDto dto);


    @AutoFill
    void add(NursingLevel nursingLevel);

    @Select("select * from nursing_level where id=#{id}")
    NursingLevelVo selectid(Long id);

    @AutoFill
    void update(NursingLevel nursingLevel);

    @Delete("delete from nursing_level where id=#{id}")
    void deleteid(Long id);

    @Select("select * from nursing_level")
    List<NursingLevelVo> selectall();
}
